package com.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dao.FazhixuanchuanDao;
import com.entity.FazhixuanchuanEntity;
import com.entity.view.FazhixuanchuanView;
import com.service.FazhixuanchuanService;
import com.utils.PageUtils;
import com.utils.Query;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * 法制宣传 服务实现类
 */
@Service("xinlijiankangService")
@Transactional
public class FazhixuanchuanServiceImpl extends ServiceImpl<FazhixuanchuanDao, FazhixuanchuanEntity> implements FazhixuanchuanService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<FazhixuanchuanView> page = new Query<FazhixuanchuanView>(params).getPage();
        page.setRecords(baseMapper.selectListView(page, params));
        return new PageUtils(page);
    }


}
